package com.gao.redlock.common.id.impl;

import cn.hutool.core.util.RandomUtil;
import com.gao.redlock.common.id.IdGenerator;
import org.springframework.stereotype.Component;

/***
 * 随机数字
 */
@Component
public class RandomNumeric implements IdGenerator {

    @Override
    public long nextId() {
        return Long.parseLong(RandomUtil.randomNumbers(11));
    }
}
